package com.blast.manager.adapter

import android.widget.ImageView
import com.blast.manager.R
import com.chad.library.adapter.base.BaseViewHolder
import com.wxl.common.adapter.AbsKeyEventAdapter
import com.wxl.common.room.entity.QuestionItemEntity
import com.wxl.common.util.ImgLoader

class AskAdapter : AbsKeyEventAdapter<QuestionItemEntity> {

    constructor(data: List<QuestionItemEntity>?) : super(R.layout.item_ask_layout,data)

    override fun convert(helper: BaseViewHolder, item: QuestionItemEntity) {
        super.convert(helper, item)
        ImgLoader.loadResouce(helper.getView<ImageView>(R.id.askItemImg),R.mipmap.icon_question2)
        helper.setText(R.id.askItemText,item.title)
    }
}